//
// Created by wuzhe on 2022/4/18.
//

#include "OfflineState.h"
#include "FirstLoginState.h"
#include "InRoomState.h"

OfflineState::OfflineState(Player &player):PlayerState(player, PLAYER_STATUS::OFFLINE) {

}

PlayerState* OfflineState::getEnter() {
    // normal login
    INFO(std::string("player ") + player.getRoleName() + " status changed: offline->first login");
    player.connect();
    return new FirstLoginState(player);
}